﻿<%@ Register TagPrefix="ucCommon" TagName="Common" Src="../Common/Inc/Common.ascx" %>
<%@ Register TagPrefix="ucTabTitle" TagName="TabTitle" Src="../Common/Inc/TabTitle.ascx" %>
<%@ Register TagPrefix="ucCopyright" TagName="Copyright" Src="../Common/Inc/Copyright.ascx" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Usr1011m.aspx.cs" Inherits="Updms.Usr.Usr1011m" %>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>▒ UPDMS [Usr1011m] ▒▒▒▒▒▒▒▒▒▒</title>
<ucCommon:Common id="Common" runat="server"></ucCommon:Common>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager runat="server" id="ScriptManager1" EnableScriptGlobalization="true"></asp:ScriptManager>

<table id="table_frame">
	<tr>
		<td id="contents_area">
			<!-- 제목 시작 -->
			<ucTabTitle:TabTitle id="TabTitle" TagPrefixs="Usr1011m" runat="server"></ucTabTitle:TabTitle>
			<!-- 제목 끝 -->

			<!-- AJAX 시작 -->
			<asp:UpdatePanel ID="UpdatePanel1" runat="server">
			<ContentTemplate>

			<!-- 버튼 시작 -->
			<div class="button_area">
				<asp:linkbutton id="ibtn_close" Text="닫기" runat="server" CssClass="ibtn ibtn_close" OnClientClick="javascript:window.close();return false;"></asp:linkbutton>
				<asp:linkbutton id="ibtn_delete" Text="삭제" runat="server" CssClass="ibtn ibtn_delete" OnClientClick="return chkDelete()" OnClick="ibtn_delete_Click"></asp:linkbutton>
				<asp:linkbutton id="ibtn_save" Text="저장" runat="server" CssClass="ibtn ibtn_save" OnClientClick="return chkSave()" OnClick="ibtn_save_Click"></asp:linkbutton>
			</div>
			<!-- 버튼 끝 -->
			<!-- 디테일1 시작 -->
			<table class="table_detail">
			<tr>
				<td class="lbl" width="20%"><asp:Literal ID="ltr_favorite_list" Text="즐겨찾기" runat="server" /></td>
				<td class="ctl" width="80%">
					<ul class="horizontal">
						<li style="width:90%"><asp:DropDownList id="ddl_favorite_list" runat="server" CssClass="ddl" AutoPostBack="True" OnSelectedIndexChanged="ddl_favorite_list_SelectedIndexChanged"></asp:DropDownList></li>
						<li style="width:10%;padding:2px 0 0 0;"><asp:linkbutton id="ibtn_go_url" runat="server" CssClass="sbtn sbtn_page_refresh"></asp:linkbutton></li>
					</ul>
				</td>
			</tr>
			<tr>
				<td class="lbl"><asp:Literal id="ltr_title" Text="제목" runat="server" /></td>
				<td class="ctl"><asp:TextBox id="txt_title" runat="server" Width="99.7%" CssClass="ib_b req"></asp:TextBox></td>
			</tr>
			</table>
			
			<!-- 카피라이트 시작 -->
			<ucCopyright:Copyright id="Copyright" runat="server"></ucCopyright:Copyright>
			<!-- 카피라이트 끝 -->
			<!-- 히든값 시작 -->
			<div id="hdn_data">
			<asp:label id="h_pgm_id" runat="server"></asp:label>
			<asp:label id="h_search_condition" runat="server"></asp:label>
			</div>
			<!-- 히든값 끝 -->
			</ContentTemplate>
			</asp:UpdatePanel>
			<!-- AJAX 끝 -->
		</td>
	</tr>	
</table>

</form>

<script type="text/javascript" language="javascript" defer="defer">
	//저장
	function chkSave() {
		var isSelected = false;
		if ($F("ddl_favorite_list").blank()) {
			if ($F("txt_title").blank()) {
				msgBox.alert(getMsg(MSG_ERR_016), setFocus, "txt_title"); //제목을 입력해 주세요
				return false;
			}
		} else {
			isSelected = true;
		}

		var MSG_ID = isSelected ? MSG_CFM_028 : MSG_CFM_000; //수정/저장
		msgBox.confirm(getMsg(MSG_ID), doSave); //저장하시겠습니까?

		return false;
	}

	//삭제
	function chkDelete() {
		if ($F("ddl_favorite_list").blank()) {
			msgBox.alert(getMsg(MSG_ERR_053), setFocus, "ddl_favorite_list"); //삭제할 항목을 선택하세요
			return false;
		}
		msgBox.confirm(getMsg(MSG_CFM_001), doDelete); //삭제하시겠습니까?
		return false;
	}
</script>
</body>
</html>